from dao.nurse import patient_user_info_dao

def read(data):
    id = data["id"]
    print(id)
    result = patient_user_info_dao.read(id)

    if result:
        user_first = result
        print(user_first)
        result = {"code": 20000, "err": 0, "message": "查看患者用户信息成功",
                  "data": {"userinfo": user_first}}
    else:
        result = {"err": 2, "message": "无数据", "data": {}}
    return result